﻿/*****************************************介绍*****************************************
 * 作者：24531
 * 创建时间：2025-08-23 13:08:18
 * 功能：商品奖励处理器
**************************************************************************************/

using Game.BaseData;
using Game.Framework;
using System.Collections.Generic;
using UnityEngine;

public class ProductRewardHandler
{
    public ProductRewardHandler(Config.IAP.Product product)
    {
        IssueReward(product.reward);
        GameDataMgr.Instance.Save();
    }

    private void IssueReward(Config.IAP.Reward reward)
    {
        //switch (reward.type)
        //{
        //    case Config.IAP.E_AwardType.Coin:
        //        Reward_Coin(reward.amount);
        //        break;
        //    case Config.IAP.E_AwardType.Diamond:
        //        Reward_Diamond(reward.amount);
        //        break;
        //    case Config.IAP.E_AwardType.Character:
        //        Reward_Character(reward.amount);
        //        break;
        //    case Config.IAP.E_AwardType.RemoveAd_Coin:
        //        Reward_RemoveAd_Coin(reward.amount);
        //        break;
        //    case Config.IAP.E_AwardType.Coin_Diamond:
        //        Reward_Coin_Diamond(reward.amount);
        //        break;
        //    case Config.IAP.E_AwardType.Character_Coin_Diamond:
        //        Reward_Character_Coin_Diamond(reward.amount);
        //        break;
        //    case Config.IAP.E_AwardType.DoubleCoin:
        //        Reward_DoubleCoin(reward.amount);
        //        break;
        //    case Config.IAP.E_AwardType.Skin:
        //        Reward_Skin(reward.amount);
        //        break;
        //    case Config.IAP.E_AwardType.TimeLimit:
        //        Reward_TimeLimit(reward.amount);
        //        break;
        //    case Config.IAP.E_AwardType.Work:
        //        Reward_Work(reward.amount);
        //        break;
        //    case Config.IAP.E_AwardType.EmployeeCD:
        //        Reward_EmployeeCD(reward.amount);
        //        break;
        //}
    }

}